#include "Scene.h"
#include "GL/gl.h"

void Scene::addObject(Object * object, Matrix4 transformation) {
  objects.push_back(object);
  transformations.push_back(transformation);
}

void Scene::draw() {
  for(unsigned int i = 0; i < objects.size(); i++) {
    glPushMatrix();
    transformations[i].applyGL();
    objects[i]->draw();
    glPopMatrix();
  }
}
